# /usr/bin/python3
# -*- coding: utf-8 -*-
# @Time    : 2022/1/15 10:40
# @Author  : lt
# @Email   : lt@163.com
# @File    : driver.py
# @Software: PyCharm
from appium import webdriver
def RRZ():
    desired_capabilities = {
        'platformName':'Android',
        'deviceName':'127.0.0.1:21503',
        'noReset':True,
        # 'newCommandTimeout':60,
        # 'automationName':'uiautomator',
        'platfornVersion':'7.1.2',
        'appPackage':'com.gfeng.daydaycook',
        'unicodeKeyboard':True,
        'resetKeyboard':True,
        'appActivity':'com.gfeng.daydaycook.activity.WelcomeActivity'
}
    driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_capabilities)
    return driver
